/*
 * @Descripttion: 类型别名
 * @Author: ziwei
 * @Date: 2022-07-04 17:35:33
 * @LastEditors: ziwei
 * @LastEditTime: 2022-07-04 17:59:48
 */
type Cart<T> = {list:T[]}|T[]
let c1:Cart<string> = {list:['1']}
let c2:Cart<number> = [1,2,3]

//inteface和type的区别
